<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 


 



{template 'header.html'}

 

<div class="container"> 
    <div class="main">  
   			
            
            <ul class="nav nav-tabs">
                <li {if $action==''}class="active"{/if}><a href="?module={$module}">小组</a></li>
                <li {if $action=='latest'}class="active"{/if}><a href="?module={$module}&action=latest">话题</a></li>
            </ul>
                  
                  
            <div class="mod topic">
    
                <ul class="body">
                	
                   {php $sql = "SELECT * FROM `".DB_PRE."group_topic` WHERE status=99 ORDER BY topicid DESC"}
                    {get sql="$sql" rows="20" page="$page"}
                    
                    
                    <div class="bubblely">
                        <div class="bubblely-item">
                        	
                            <div class="bubblely-aside">
                                <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}" rel="popover" data-placement="right"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48" class="thumbnail"/></a>
                            </div>
                            <div class="bubblely-main">
                                <div class="arrow"></div>
                                <div class="bubblely-inner">
                                
                                	<h4 class="bubblely-title"><a target="_blank" href="{url($r[url])}" title="{$r[title]}">{str_cut($r[title],30)}</a>{date('Y-m-d',$r[updatetime])}</h4>
                                    {if $r[description]}
                                    <div class="bubblely-desc">{str_cut(str_replace('　','',$r[description]),450,'...')} </div>
                                    {/if}
                                    
                                    <div class="bubblely-tool">
                                    	<i class="icon-eye-open"></i>{$r[hits]}次浏览&nbsp;
                                    	<i class="icon-plus"></i><a href="#">关注TA</a>&nbsp;
                                        <i class="icon-bookmark"></i><a href="?module=collect&action=add&mod=&field=&value=">添加收藏</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                   </div>
                   
                    {/get}
                   
                 
                </ul>
            	<div class="pagination">{$pages}</div>
            </div>

    </div>
    
    <div class="aside"> 
        
      	<div class="mod">
        	<div class="well">
                <a class="button" rel="nofollow" href="{url("?module=group&action=create")}"><i class="icon-plus"></i>创建小组</a>
            </div>
        </div>
        
        
        <div class="mod">
            <div class="head">搜索小组</div>
            <div class="body">
                <form action="" method="post">
                    <input name="keyword" type="text" value="{if $keyword}{$keyword}{else}请输入关键字{/if}" onFocus="if(this.value=='请输入关键字'){this.value=''}" onBlur="if(this.vlaue==''){this.value='请输入关键字'}"  />
                    <input name="" type="submit" value="搜索" class="button" />
                 </form>
            </div>
        </div>
        
        
        <div class="mod">
            <div class="head">最新小组</div>
            <ul class="body users">
            {get sql="select url,title,thumb from table_group where thumb <> '' order by groupid desc" rows="8"}
            <li>
             <a href="{url($r[url])}" title="{$r[title]}">
             <img src="{php echo $r[thumb] ? thumb($r[thumb],72,'') : thumb('misc/nopic.gif',72,'')}" 
             alt="{$r[title]}"  target="_blank" width="40" height="40"/></a>
             <br/><a href="{url($r[url])}">{str_cut($r[title],15,'')}</a><br/>&nbsp;({rand(100,500)})
            </li>
          {/get}
          </ul>
        </div>
        
        
       <div class="mod">
        <div class="head">最新注册会员 (<a href="{url("?module=member&action=list")}">更多</a>)</div>
        <ul class="body users">
            {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid=10 AND disabled=0 ORDER BY userid DESC"}
           {get sql="$sql" rows="24"}
            <li class="thumbnail">
             <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
             <br/><a href="{url("?module=space&userid=$r[userid]")}">{php echo $r[nickname] ? $r[nickname] : $r[username]}</a>
            </li>
          {/get}
       </ul>
    </div>
    
          
        
          
    </div>
</div>


{template 'footer.html'}

